<img class="widget dialog" id="{{ include.name }}dialog" src="/images/dialogs/{{ include.name }}-light.png" />

<script>
$("#{{ include.name }}dialog").one("load", function() {
    newWidth = this.width / 2 + "px";
    this.style.width = newWidth;
    this.style.height = "auto";
});

</script>
